package com.apps.ftapp.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.apps.ftapp.R;
import com.apps.ftapp.util.Tools;

import butterknife.BindView;
import butterknife.ButterKnife;
import es.dmoral.toasty.Toasty;

/**
 * 用户反馈
 */
public class FeedbackActivity extends BaseActivity {

    @BindView(R.id.content)
    EditText content;
    @BindView(R.id.tijiao)
    Button tijiao;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_feedback);
        ButterKnife.bind(this);
        setTitle("用户反馈");


        tijiao.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                tijiao();
            }

        });

    }


    private void tijiao() {
        String cont = content.getText().toString();

        if ("".equals(Tools.isNull(cont))) {
            Toasty.normal(getApplicationContext(), "请输入反馈内容").show();
            return;
        }
        Toasty.normal(getApplicationContext(), "您的反馈内容已提交~").show();
    }

}
